﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="releasenot.aspx.cs" Inherits="TCS.Web.Admin.NewsManage.releasenot" %>

<%@ Register Src="../../Controls/checkright.ascx" TagName="checkright" TagPrefix="uc1" %>
<%@ Register Src="~/Admin/uc/AdminMapPath.ascx" TagName="MapPath" TagPrefix="uc1" %>
<%@ Register TagPrefix="cc1" Namespace="LtpPageControl" Assembly="LtpPageControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script type="text/javascript" language="JavaScript" src="../../js/CheckBox.js"></script>
    <link href="../Style.css" type="text/css" rel="stylesheet">
    <style type="text/css">
        .style1
        {
            height: 30px;
        }
		  body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            padding: 0px;
			background-color:#f4fbff
        }
		.hs{color:#000000}
    </style>
	 <link href="../css/text.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
<!--
.STYLE6 {color: #8F5E0A}
-->
     </style>
</head>
<body>
    <form id="Form1" runat="server">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="37" style="width: 37px;">
                                        <img src="../images/left_15.gif" width="37" height="25" />
                                    </td>
                                    <td background="../images/left_17.gif">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td style="color: #013559">
                                                当前位置：信息管理 &gt;&gt; <span class="STYLE6">信息审核</span>                                                </td>
                                                <td width="78" style="width: 78px;">
                                                  
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td>
					<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td></td>
                      </tr>
                    </table>
                   <table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#4187b7">
                      <tr>
                        <td height="30" bgcolor="#52A6DE">
                    <table width="90%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td style="color:#FFFFFF"> &nbsp;&nbsp;快速查询：</td>
                            <td><asp:DropDownList runat="server" ID="dropInfoType">
                                </asp:DropDownList></td>
                            <td><asp:TextBox ID="txtKey" runat="server" Text="请输入关键字" ToolTip="请输入关键字" BorderStyle="Groove"></asp:TextBox></td>
                            <td><asp:DropDownList ID="DropField" runat="server" Width="150px">
                                    <asp:ListItem Value="Heading">标题</asp:ListItem>
                                    <asp:ListItem Value="Focus">关键字</asp:ListItem>
                                    <asp:ListItem Value="Content">内容</asp:ListItem>
                                </asp:DropDownList></td>
                            <td><asp:ImageButton ID="btn_Search" runat="server" ToolTip="快速检索广告" ImageUrl="..\images\left_32.gif"
                                    OnClick="btn_Search_Click"></asp:ImageButton></td>
                          </tr>
                        </table></td>
                    
                    </table>
                    <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td></td>
                      </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="96%" align="center" border="0">
                        <tr>
                            <td bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                                <asp:DataGrid ID="grid" PageSize="15" runat="server" AutoGenerateColumns="False"
                                    Width="100%" DataKeyField="NewsId" OnItemDataBound="grid_ItemDataBound" SkinID="datagridSkin"
                                    CellPadding="3" BorderWidth="1px" HeaderStyle-Font-Bold="true" 
                                    OnItemCommand="grid_ItemCommand" AllowPaging="True">
                                    <Columns>
                                        <asp:TemplateColumn HeaderText="选择" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="30px"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="center"></ItemStyle>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="SelectThis" onclick="javascript:CCA(this);" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="NewsId" ReadOnly="True" HeaderText="序号" HeaderStyle-Width="30px"
                                            Visible="false" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <HeaderStyle Width="30px"></HeaderStyle>
                                        </asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="序号" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <ItemTemplate>
                                                <%#GetNum(Container.ItemIndex.ToString()) %>
                                            </ItemTemplate><itemstyle HorizontalAlign="center"></itemstyle>
                                            <HeaderStyle Wrap="false" />
                                        </asp:TemplateColumn>
                                       <%-- <asp:HyperLinkColumn DataNavigateUrlField="NewsId" DataNavigateUrlFormatString="show.aspx?id={0}"
                                            DataTextField="Heading" HeaderText="文章标题">
                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                            <ItemStyle Font-Bold="False" Width="350px" Font-Italic="False" Font-Overline="False"
                                                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" />
                                        </asp:HyperLinkColumn>--%>
                                         <asp:TemplateColumn HeaderText="文章标题" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink1" ToolTip="点击查看详细"  NavigateUrl=' <%# "show.aspx?id=" + Eval("NewsId") %>'  runat="server"><%# CutString(Eval("Heading"),15)%></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="区域及发布人" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# GetName(Eval("Frequency"),Eval("userid")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="类型" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3" ItemStyle-HorizontalAlign="Center" >
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Dormancy") %>'  ></asp:Label>
                                            </ItemTemplate><itemstyle ForeColor="#000000"></itemstyle>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="ClassId" HeaderText="所属栏目" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3">
                                            <HeaderStyle Wrap="False" Width="60px"></HeaderStyle>
                                            <ItemStyle Wrap="False"></ItemStyle>
                                        </asp:BoundColumn>
                                           <asp:TemplateColumn HeaderText="时间" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3" ItemStyle-HorizontalAlign="Center" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblDate" runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.IssueDate")%>' Text='<%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.IssueDate")).ToString( "yyyy-MM-dd ")%>'></asp:Label>
                                            </ItemTemplate>

<HeaderStyle BorderColor="#AFC4E3"></HeaderStyle>

<ItemStyle BorderColor="#AFC4E3"></ItemStyle>
                                         </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="区域" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.priority") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="状态" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" Text='<%# GetShenhe(Eval("istop")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    
                                        <asp:TemplateColumn HeaderText="审核" HeaderStyle-BorderColor="#afc4e3" ItemStyle-BorderColor="#afc4e3" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="Button1" ImageUrl="~/Admin/Images/anniou_sh_07.gif" CommandName="shenhe" CommandArgument='<%#Eval("istop") %>'
                                                 OnClientClick='return confirm("确定审核？")'    runat="server" Text='<%#GetSh(Eval("istop")) %>'  />
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="false" />
                                        </asp:TemplateColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                    <HeaderStyle Font-Bold="True"></HeaderStyle>
									 <HeaderStyle CssClass="bj" HorizontalAlign="center" />
                                </asp:DataGrid>
                            </td>
                        </tr>
                    </table>
                     <table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td></td>
                      </tr>
                    </table>
					<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CEDEED">
                <tr>
                  <td height="25" bgcolor="#ecf5fd" style="padding-left:10px;"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#ecf5fd">
                                <tr>
                                    <td align="left">
                                        页次：<asp:Label ID="lblCurrentPage" runat="server" ForeColor="#e78a29"></asp:Label>页/<asp:Label
                                            ID="lblPageCount" runat="server"></asp:Label>页，共<asp:Label ID="lblRowsCount" runat="server"
                                                ForeColor="#e78a29"></asp:Label>条记录
                                    </td>
                                    <td align="right">
                                        [<asp:LinkButton ID="btnFirst" runat="server" OnCommand="NavigateToPage" CommandArgument="First"
                                            CommandName="PageIndex" Text="首 页">首 页</asp:LinkButton>] [<asp:LinkButton ID="btnPrev"
                                                runat="server" OnCommand="NavigateToPage" CommandArgument="Prev" CommandName="PageIndex"
                                                Text="上一页">上一页</asp:LinkButton>] [<asp:LinkButton ID="btnNext" runat="server" OnCommand="NavigateToPage"
                                                    CommandArgument="Next" CommandName="PageIndex" Text="下一页">下一页</asp:LinkButton>]
                                        [<asp:LinkButton ID="btnLast" runat="server" OnCommand="NavigateToPage" CommandArgument="Last"
                                            CommandName="PageIndex" Text="尾 页">尾 页</asp:LinkButton>]&nbsp;</td>
                                </tr>
                            </table></td>
                </tr>
              </table>
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>

							
                    <table  width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor='#cedeed'>
                        <tr>
                            <td  width="80" height="25" bgcolor="#F4FBFF" style="padding-left:6px;">
                                <input onclick="CA();" type="checkbox" name="allbox" />全选
                            </td>
                            <td align="left" bgcolor="#F4FBFF" style="padding-top:4px;">
                                <asp:Button ID="btn_Relese" runat="server" ToolTip="让新闻变为发布状态" Text=" 发 布 " BorderStyle="Groove"
                                    BackColor="Transparent" BorderColor="RoyalBlue" Height="20px" BorderWidth="1px"
                                    OnClick="btn_Relese_Click" Visible="False"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btn_NoRelease" runat="server" ToolTip="取消新闻的发布" Text=" 休 眠 " BorderStyle="Groove"
                                    BackColor="Transparent" BorderColor="RoyalBlue" Height="20px" BorderWidth="1px"
                                    OnClick="btn_NoRelease_Click" Visible="False"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="ImgConfirm" runat="server" ToolTip="删除选中的文章" Text=" 批 量 删 除 " BorderStyle="Groove"
                                     BackColor="Transparent" BorderColor="RoyalBlue" ImageUrl="~/Admin/Images/sh2_03.gif" 
                                    OnClick="ImgConfirm_Click"></asp:ImageButton>&nbsp;&nbsp;&nbsp;&nbsp;
                              <asp:ImageButton ID="ImgCancelSh" runat="server" ToolTip="审核选中的文章" Text=" 批 量 审 核  " BorderStyle="Groove"
                                    BackColor="Transparent" BorderColor="RoyalBlue" ImageUrl="~/Admin/Images/sh2_05.gif" 
                                     OnClick="ImgCancelSh_Click"></asp:ImageButton>
                            </td>
                        </tr>
                    </table>
            </td>
            
        </tr>
    </table>
	</td></tr></table>
            <div style="display:none">    
        <uc1:checkright id="Checkright1" runat="server">
        </uc1:checkright></div>
    </form>
</body>
</html>
